package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderDetail;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDao {
    public void add(Order order);
    public Page<Order> findByCondition(Order order);
    public void updateById(Order order);
    public Order findById(Integer id);
    //memberId
    public List<Member> findMemberDetail();
    //setmealId
    public List<Setmeal> findSetmeamDetail();
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();
}
